omnichannel-ux

(0 reviews)

Update Consent Details

[PATCH]

{businessId}/partyPrivacyProfile/{id}

This usecase is to update consent information of a customer in CRM(Liberate|Cerillion) system.

URL
http://[host]:[port]/omnichannel-ux/{version}/{businessId}/partyPrivacyProfile/{id}
URI Params
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
idstringIdentifier of the Resource. The leagacy system identify the profile based on billing account.Y
Headers
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.Y
Body Definitions
nametypedescriptionrequired
namestringName of the privacy profile.Y
channelstringChannel object.Y
channel.@typestringWhen sub-classing, this defines the sub-class Extensible name. Default this to "ChannelRef"Y
channel.idstringName of the channel.Y
partyPrivacyProfileCharacteristicarrayA PartyPrivacyProfileCharacteristic. List of characteristics of the privacy profile.Y
partyPrivacyProfileCharacteristic.characteristic.namestringName of the characteristicY
partyPrivacyProfileCharacteristic.characteristic.valuestringValue of the characteristicY
partyPrivacyProfileCharacteristic.characteristic.@typestringWhen sub-classing, this defines the sub-class Extensible nameY
partyPrivacyProfileCharacteristic.characteristic.valueTypestringData type of the value of the characteristic.N
partyPrivacyProfileCharacteristic.@typestringWhen sub-classing, this defines the sub-class Extensible nameN
@typestringWhen sub-classing, this defines the sub-class Extensible nameY
Characteristics
characteristic nametypedescriptionrequired
subscribeToSMSstringThis field describes OptIn or OptOut of Marketing SMSY
subscribeToEmailstringThis field describes OptIn or OptOut of Marketing EmailY
subscribeToCallsstringThis field describes OptIn or OptOut of Marketing CallsY
subscribeToSurveystringThis field describes OptIn or OptOut of Marketing SurveyY
subscribeToAllstringThis field describes OptIn or OptOut of Marketing ServicesY
smsStartDatestringThis field describes the start date when the OptIn or OptOut consent for SMSN
smsEndDatestringThis field describes the end date when the OptIn or OptOut consent for SMSN
emailStartDatestringThis field describes the start date when the OptIn or OptOut consent for EmailN
emailEndDatestringThis field describes the end date when the OptIn or OptOut consent for EmailN
callsStartDatestringThis field describes the start date when the OptIn or OptOut consent for CallsN
callsEndDatestringThis field describes the end date when the OptIn or OptOut consent for CallsN
surveyStartDatestringThis field describes the start date when the OptIn or OptOut consent for SurveyN
surveyEndDatestringThis field describes the end date when the OptIn or OptOut consent for SurveyN
allConsentStartDatestringThis field describes the start date when the OptIn or OptOut for all consent communicationN
allConsentEndDatestringThis field describes the end date when the OptIn or OptOut for all consent communicationN
Sample Request
{
   "name":"",
   "channel": {
    "@type": "ChannelRef",
    "id": "redmond"
  },
   "partyPrivacyProfileCharacteristic":[
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "subscribeToSMS",
      "valueType": "string",
      "value": "Yes",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "subscribeToEmail",
      "valueType": "string",
      "value": "Yes",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "subscribeToCalls",
      "valueType": "string",
      "value": "Yes",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "subscribeToSurvey",
      "valueType": "string",
      "value": "Yes",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "subscribeToAll",
      "valueType": "string",
      "value": "Yes",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "smsStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "smsEndDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "emailStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "emailEndDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "callsStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "callsEndDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "surveyStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "surveyEndDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
   {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "allConsentStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
   {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "allConsentEndDate",
      "valueType": "string",
      "value": "2025-07-01",
      "@type": "StringCharacteristic"
    }
  }
],
    "@type":"PartyPrivacyProfile"
}
Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

Sample Response
{
   "id":"54647849",
   "name":"",
   "channel": {
    "@type": "ChannelRef",
    "id": "redmond"
  },
   "partyPrivacyProfileCharacteristic":[
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "subscribeToSMS",
      "valueType": "string",
      "value": "Yes",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "subscribeToEmail",
      "valueType": "string",
      "value": "Yes",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "subscribeToCalls",
      "valueType": "string",
      "value": "Yes",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "subscribeToSurvey",
      "valueType": "string",
      "value": "Yes",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "subscribeToAll",
      "valueType": "string",
      "value": "Yes",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "smsStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "smsStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "smsEndDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "emailStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "emailEndDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "callsStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "callsEndDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "surveyStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "surveyEndDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
  {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "allConsentStartDate",
      "valueType": "string",
      "value": "2025-04-01",
      "@type": "StringCharacteristic"
    }
  },
   {
    "@type": "PartyPrivacyProfileCharacteristic",
    "characteristic": {
      "name": "allConsentEndDate",
      "valueType": "string",
      "value": "2025-07-01",
      "@type": "StringCharacteristic"
    }
  }
],
    "@type":"PartyPrivacyProfile"
}

Reviews